package b3.widget.home.town
{
	import b3.net.*;
	import b3.util.*;
	import b3.widget.basic.*;
	
	import flash.display.*;
	import flash.filters.*;
	import flash.text.*;

	public class BuildingInfoPane extends BasicWidget
	{
		public function BuildingInfoPane(text:String)
		{
			super();
			this.effect = BasicWidget.EFFECT_FLOAT;
			//图标
			var ImgClass:Class = ResourceHelper.getInstance().getClassByName("PopulationIcon");
			var imgCoin:Sprite = new ImgClass();
			imgCoin.x = -6;
			imgCoin.y = -6;
			imgCoin.height = 22;
			imgCoin.scaleX = imgCoin.scaleY;
			addChild(imgCoin);
			//文字
			var textField:TextField = new TextField();
			textField.selectable = false;
        	textField.autoSize = TextFieldAutoSize.LEFT;
			textField.defaultTextFormat = new TextFormat(BFont.fontName, 16, 0xFFFFFF, true);
			textField.filters = [new GlowFilter(0x00AAFF, 1, 1.3, 1.3, 100, BitmapFilterQuality.HIGH)];
			textField.x = 15;
			textField.y = -7;
			textField.text = text;
			addChild(textField);
			this.mouseChildren = false;
			this.mouseEnabled = false;
		}
	}
}